package com.diy.sigmund.diycommon.designpatterns.template;

/**
 * @author ylm-sigmund
 * @since 2022/1/13 11:22
 */
public class TemplateClassSub extends TemplateClass {

    @Override
    void hook() {
        super.hook();
    }

    @Override
    protected void primitiveOperation2() {
        System.out.println("privateOptioin2");
    }

    @Override
    protected void primitiveOperation1() {
        System.out.println("privateOptioin1");
    }

    public static void main(String[] args) {
        TemplateClassSub templateClassSub = new TemplateClassSub();
        templateClassSub.templateMethod();
    }
}
